namespace CSharpPro._1021;

public class Student
{
    //字段
    private string name;
    private int id;
    private string userEmail;
    
    //属性
    public int Id
    {
        get => id;
        set => id = value;
    }

    public string Name
    {
        get => name;
        set => name = value;
    }

    public string UserEmail
    {
        get => userEmail;
        set => userEmail = value;
        
    }

    public Student()
    {
        
    }

    public Student(int id)
    {
        this.id = id;
    }

    public Student(string name)
    {
        this.name = name;
    }
    
    
    public Student(int id, string name)
    {
        this.id = id;
        this.name = name;
    }

    public override string ToString()
    { 
        return $"id:{id} ,name: {name},userEmail: {userEmail}";
    }
    
}